<?php

namespace App\Component\Tools;

use Teeb\Base\Application;

class ToolsManager
{
    protected $app;
    protected $toolsbox;
    public function __construct(Application $app)
    {
        $this->app = $app; //绑定app对象
        require_once($app->basePath().'/library/tools/Tools.class.php'); //引入Tools类主接口文件
        $this->toolsbox = new \Tools();//初始化新的Tools对象,并且传入构造初始化模板参数
    }

    public function __call($method, $param)
    {
        //var_dump($param);
        //$aaa='123';
        //$param = array('' => , );
        //$connection = $this->connection();
        //return call_user_func_array($this->toolsbox, $parameters);
        return call_user_func_array(array($this->toolsbox, $method), $param);  
    }
}